package com.codebattery.service;

import com.codebattery.domain.entity.Organization;
import com.codebattery.domain.entity.User;
import com.codebattery.domain.model.*;
import com.codebattery.repository.DeviceRepository;
import com.codebattery.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceService {
    @Autowired
    private DeviceRepository deviceRepository;

    public Page<DeviceInfo> list(Pageable pageable) {

        return  deviceRepository.queryDevices(pageable);
    }
}
